﻿<Window x:Class="Power.Login"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Login" Height="299" Width="562">
    <Grid>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>

                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Image Source="./Images/hot.png" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="4" Grid.RowSpan="3">
            </Image>
            <TextBlock Text="用户名：" Grid.Column="0" Grid.Row="3" DataContext="{Binding}" TextAlignment="Center" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
            <TextBlock Text="密码："  Grid.Column="0" Grid.Row="4" FontSize="18" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
            <TextBox Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="3" FontSize="18" HorizontalAlignment="Stretch" VerticalAlignment="Center" Name="Usernabox"></TextBox>
            <PasswordBox Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="3" FontSize="18" HorizontalAlignment="Stretch" VerticalAlignment="Center" Name="Userpasswdbox"></PasswordBox>

            <Grid Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="4">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>

                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition></RowDefinition>

                </Grid.RowDefinitions>
                <Button Grid.Column="0" Grid.Row="1" Content="新用户注册" FontSize="18" Click="Button_Click"></Button>
                <Button Grid.Column="1" Grid.Row="1" Content="登陆" FontSize="18" Click="Button_Click_1"></Button>
                <Button Grid.Column="2" Grid.Row="1" Content="取消" FontSize="18" Click="Button_Click_2"></Button>
            </Grid>
        </Grid>
    </Grid>
</Window>